﻿<?php
define('IN_MEDIA',true);
define('IN_MEDIA_ADMIN', true);

include('includes/config.php');
include('includes/functions.php');
if($id) {
	$q 	= $mysql->query("SELECT * FROM ".$tb_prefix."user WHERE user_identifier = '".$id."'");
	if (!$mysql->num_rows($q)) {
		die("<script language=javascript>alert('Bạn không có quyền truy cập trang này !');</script><script language='JavaScript'>{ window.parent.location='index.php' }</script>");exit();
	}
	elseif($mysql->num_rows($q)) {
		$row = $mysql->fetch_array($q);
		$_SESSION['identifier'] = $id;
		$_SESSION['user_id'] = $row['user_id'];
?>
<html>
<head><title>.:: MemCP - <?=m_get_config("web_title");?> ::.</title>
	<meta http-equiv=Content-Type content="text/html; charset=UTF-8">
	<link rel=stylesheet href="memcp/style.css" type=text/css>
</head>
<body>
<table valign=top>
<tr><td valign=top style="padding-left:10px;padding-right:10px;">
<?php
echo "Chào <b>".m_get_data('USER',$_SESSION['user_id'])."</b>";
include("memcp/left.php");
include("memcp/user_functions.php");
?>

</td><td style="padding-left:10px;padding-right:10px;"  valign=top>
<?php
switch($act){
	case "edit_info"					:include("memcp/mem_info.php");break;
	case "edit_pass_email"				:include("memcp/mem_pass_email.php");break;
	case "upload"				:include("memcp/upload.php");break;
	case "list_upload"				:include("memcp/list_upload.php");break;
        case "play_list"				:include("memcp/play_list.php");break;
        case "friends_list"				:include("memcp/friends_list.php");break;
}
?>
</td></tr>
</table>

<?
	}
}
?>
</body>
</html>

